﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using TravelSite.DAL;
using TravelSite.DAL.Repositories;
using TravelSite.Entities;
using TravelSite.Code;

namespace TravelSite.Admin
{
    public partial class ContractToPdf : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Common.ContractToPdf(ContractId, this, false, false);
        }

        private int ContractId
        {
            get
            {
                int result = -1;
                if (!string.IsNullOrEmpty(Request.QueryString["c"]))
                    result = Convert.ToInt32(Request.QueryString["c"]);
                return result;
            }
        }
    }
}